package com.cn.lp.jpa.cq.domain;

import com.cn.lp.jpa.cq.CQLogicalType;

/**
 * Created by on 2019/8/7.
 */
public class CQConditionSign implements CQSignItem {

    public CQLogicalType cqLogicalType;

    public String text;

    public static CQConditionSign of(CQLogicalType cqLogicalType, String data) {
        CQConditionSign conditionSign = new CQConditionSign();
        conditionSign.cqLogicalType = cqLogicalType;
        conditionSign.text = data;
        return conditionSign;
    }

    @Override
    public CQLogicalType getLogicalType() {
        return cqLogicalType;
    }

    @Override
    public String getText() {
        return text;
    }

}
